<?php
SESSION_START();
//include_path=.:/home/u514055689/public_html/
//open_basedir = "/home/u514055689/public_html/";
$title="Home Page";
$messgae ="Hello,";
if(isset($_SESSION["user"]))
	$loggedinUser=$messgae." ".$_SESSION["user"]. " !";
else
	$loggedinUser="";
include(__DIR__.'/MasterPage/Header.php');
?>

<?php
$pageName = $_SERVER['QUERY_STRING'];
if($pageName=="" || IS_NULL($pageName) || $pageName=="offset")
	include 'home.php';
else if($pageName=='Login')
	include 'Account/Login.php';
else if($pageName=='Logoff')
	include 'Account/Logoff.php';
else if($pageName=='Register' || $pageName=='Manage')
	include 'Account/Register.php';
else if($pageName==='OnlineOrder')
	include('Order/Online.php');
else if($pageName=='Avalibility')
	include 'Avalibility.php';
else if($pageName=='Contact')
	include 'contact.php';
else if($pageName=='About') 
	include 'about.php';
else if($pageName=='of' || $pageName=='os') 
	include 'Order/OrderDetails.php';	
else if($pageName=='Authenticate')
{
	echo '<p><center><h2>Wait while we are authenticating you.</h2><img src="Images\loading.gif" alt="loading"/></center></p>';
	$social = $_POST['provider'];
	if($social=='Facebook')
	{	
		$URL="Account/fbLogin.php";
		echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">';  
	}
	else if($social=='Twitter')
	{
		$URL="Account/twitterLogin.php";
		echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">'; 
	}
	else if($social=='Google')
	{
		$URL="Account/googleLogin.php";
		echo '<META HTTP-EQUIV="refresh" content="0;URL=' . $URL . '">'; 
	}
}
else
	include 'Error.php';

?>

	<?php
include(__DIR__.'/MasterPage/Footer.php');
?>
<script type="javascript" language="text/javascript">
	function redirect()
	{location.href='Account/fbLogin.php';
	}</script>